<div class="roles index">
	<h2><?php __('Thêm quyền sử dụng cho chức danh');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
            <th style="width: 10px;"><input type="checkbox" onclick="checkAll(this);" /></th>
			<th><?php echo 'id';?></th>
			<th><?php echo 'ten';?></th>
			
	</tr>
	<?php
	$i = 0;
	for ($j=0;$j<count($role);$j++){
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
        <?php
	           echo '<td width="3%"><input type="checkbox" value="'.$role[$j]['roles']['id'].'" 
            name="data[Phanquyen][checked][]" id="'.$i.'" ></td>';
        ?>	
		<td><?php echo $role[$j]['roles']['id']; ?>&nbsp;</td>
		<td><?php echo $role[$j]['roles']['ten']; ?>&nbsp;</td>
	</tr>
<?php } ?>
	</table>
<div align="center" style="margin-top: 10px;"><?php echo $this->Form->end(__('Thêm quyền', true));?></div>
